package com.banach.prema.executor;

import com.banach.prema.repository.ContactRepository;
import com.ego.framework.dto.Response;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ajun
 *
 */
@RestController
public class ContactDeleteExe {

	@Resource
	private ContactRepository contactRepository;

	public Response delete(List<Long> ids){
		return Response.of(contactRepository.logicDeleteByIds(ids));
	}
}
